#ifndef __SYSTEM_H
#define __SYSTEM_H

#define COLOR_BLACK 				0
#define COLOR_BLUE 				1			
#define COLOR_GREEN  			2	
#define COLOR_CYAN 				3 	
#define COLOR_RED 				4 		
#define COLOR_MAGENTA 			5
#define COLOR_BROWN 				6
#define COLOR_LIGHT_GREY 		7
#define COLOR_DARK_GREY			8
#define COLOR_LIGHT_BLUE		9
#define COLOR_LIGHT_GREEN		10
#define COLOR_LIGHT_CYAN		11
#define COLOR_LIGHT_RED			12
#define COLOR_LIGHT_MAGENTA	13
#define COLOR_LIGHT_BROWN 		14
#define COLOR_WHITE				15

extern unsigned char *memcpy(unsigned char *dest, const unsigned char *src, int count);
extern unsigned char *memset(unsigned char *dest, unsigned char val, int count);
extern unsigned short *memsetw(unsigned short *dest, unsigned short val, int count);
extern int strlen(const char *str);
extern unsigned char inportb (unsigned short _port);
extern void outportb (unsigned short _port, unsigned char _data);

extern void putc(const char);
extern void puts(const char*);
extern void cls();
extern void init_video();
extern void scroll_screen();
extern void settextcolor(unsigned char forecolor, unsigned char backcolor);
#endif

